-- GENERATED SPELL FOR [Syreian the Bonecarver] --


function spell0_32438(pUnit, Event) --@Frost Arrow,n/a--
pUnit:FullCastSpellOnTarget(38952,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32438', 6273, 1)
end

function spell1_32438(pUnit, Event) --@Improved Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(47168,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32438', 6320, 1)
end

function spell2_32438(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(50092,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32438', 594, 1)
end

function Sorts_32438(pUnit, Event)
local choix_sorts_32438 = math.random(0, 2)
if choix_sorts_32438 == 0 then
pUnit:RegisterEvent('spell0_32438', 1, 1)
end
if choix_sorts_32438 == 1 then
pUnit:RegisterEvent('spell1_32438', 1, 1)
end
if choix_sorts_32438 == 2 then
pUnit:RegisterEvent('spell2_32438', 1, 1)
end
end

function mob32438_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32438', math.random(1500, 3000), 1)
end

function mob32438_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32438_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32438_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32438, 1, 'mob32438_Action')
RegisterUnitEvent(32438, 2, 'mob32438_Leave')
RegisterUnitEvent(32438, 3, 'mob32438_Kill')
RegisterUnitEvent(32438, 4, 'mob32438_Die')
